//
//  YNewsTableViewCell.m
//  shijianpinggu
//
//  Created by apple on 2017/1/3.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "YNewsTableViewCell.h"

@implementation YNewsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    //控件切圆角
    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.unreadLable.bounds byRoundingCorners:UIRectCornerAllCorners cornerRadii:self.unreadLable.bounds.size];
    CAShapeLayer *maskLayer = [[CAShapeLayer alloc]init];
    //设置大小
    maskLayer.frame = self.unreadLable.bounds;
    //设置图形样子
    maskLayer.path = maskPath.CGPath;
    self.unreadLable.layer.mask = maskLayer;
    
    self.bkView.layer.borderWidth = 1;
    
    self.bkView.layer.borderColor = [[UIColor colorWithRed:225/255.0 green:227/255.0 blue:229/255.0 alpha:0.5] CGColor];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
